package yxy.game.pm2.bean.db.po;


import yxy.apple.db.ResultObjectBuilder;

public class YiLingBattlePo {

    private String playerCode;
    private int serverId;      //区服ID
    private int groupId;
    private int areaId;
    private int mapId;          //关卡Id
    private int head ;			// 头像
    private int headFrame ;		// 头像框
    private String username ;	// 玩家名字
    private int level ;			// 等级
    private long updateTime;    //更新时间
    private long power;         //战力

    public static ResultObjectBuilder<YiLingBattlePo> builder = rs -> {
        YiLingBattlePo po = new YiLingBattlePo();
        po.setPlayerCode(rs.getString("pCode"));
        po.setServerId(rs.getInt("serverId"));
        po.setGroupId(rs.getInt("groupId"));
        po.setAreaId(rs.getInt("areaId"));
        po.setMapId(rs.getInt("mapId"));
        po.setHead(rs.getInt("head"));
        po.setHeadFrame(rs.getInt("headFrame"));
        po.setUsername(rs.getString("username"));
        po.setLevel(rs.getInt("level"));
        po.setPower(rs.getLong("power"));
        po.setUpdateTime(rs.getLong("updateTime"));
        return po;
    };

    public int getServerId() { return serverId; }

    public void setServerId(int serverId) { this.serverId = serverId; }

    public long getPower() {
        return power;
    }

    public void setPower(long power) {
        this.power = power;
    }


    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public int getMapId() {
        return mapId;
    }

    public void setMapId(int mapId) {
        this.mapId = mapId;
    }

    public int getHead() {
        return head;
    }

    public void setHead(int head) {
        this.head = head;
    }

    public int getHeadFrame() {
        return headFrame;
    }

    public void setHeadFrame(int headFrame) {
        this.headFrame = headFrame;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }


}
